import service from "../../utils/request";
export function findAllSupplier(payload = {}) {
  return service({
    url: "/supplier/findAllSupplier",
    method: "get",
    params: payload,
  });
}
export function findAllSupplierBySupplierName(payload = {}) {
  return service({
    url: "/supplier/findAllSupplierBySupplierName",
    method: "get",
    params: payload,
  });
}
// 新增
export function addSupplier(payload = {}) {
  return service({
    url: "/supplier/addSupplier",
    method: "post",
    data: payload,
  });
}
export function findAllSupplierByState(payload = {}) {
  return service({
    url: "/supplier/findAllSupplierByState",
    method: "get",
    params: payload,
  });
}
export function deleteSupplier(payload = {}) {
  return service({
    url: "/supplier/deleteSupplier",
    method: "get",
    params: payload,
  });
}
export function updateSupplier(payload = {}) {
  return service({
    url: "/supplier/updateSupplier",
    method: "post",
    data: payload,
  });
}
